import os
import winsound
import pygame

class Sound:
    filename = None
    def __init__(self, filename = None ):
        self.load_sound(filename)

    def load_sound(self,filename):
        self.filename = os.path.join('.', filename )


    def play(self):
        print('trying to play : ' + str(self.filename))
        pygame.mixer.Sound(self.filename + ".wav").play()


    def play_music(self):
        pygame.mixer.music.load(self.filename + ".mp3")
        pygame.mixer.music.play()

